#@layout()
<script>
    $("#task-fee").validate({
        rules:{
                "price":{
                    required:true
                }
        
        },
        messages:{
                "price":{
                	required:"请输入实际支付金额..."
                }
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
        submitHandler:function(form){
        var config = {
        "url":"#(contextPath)/admin/task/accept",
        data:$("#task-fee").serialize(),
        "method":"POST"
        };
        var backendTool = new BackendTool(config);
        backendTool.ajaxRequest();
        }
    });
</script>
#define main()
    <form class="form form-horizontal" id="task-fee">
   		<div class="row cl">
	        <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>任务名称</label>
	        <div class="formControls col-xs-8 col-sm-9">
	        	#(task.task_title)
	        </div>
	    </div>
	    <div class="row cl">
	        <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>任务预算</label>
	        <div class="formControls col-xs-8 col-sm-9">
	        	￥#(totalFee??'0')
	        </div>
	    </div>
	    <div class="row cl">
	        <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>网红昵称</label>
	        <div class="formControls col-xs-8 col-sm-9">
	        	#(fair.nick_name)
	        </div>
	    </div>
	    <div class="row cl">
	        <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>点击次数</label>
	        <div class="formControls col-xs-8 col-sm-9">
	        	#(click_num)次（0.3元/次）
	        </div>
	    </div>
   		<div class="row cl">
	        <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>实际支付金额</label>
	        <div class="formControls col-xs-8 col-sm-9">
	        <input type="text" class="input-text" 
                   maxlength="50" placeholder="请输入实付金额，不得超过任务金额..." name="price" value="#(actualFee??0)">
	        </div>
	    </div>
	    <div class="row cl">
		    <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
			        <input type="hidden" value="#(task.id??'')"  name="task_id">
			        <input type="hidden" value="#(fair_id??'')"  name="fair_id">
			        <input class="btn btn-primary radius" type="submit" value="  提交  ">
			    </div>
			</div>
    </form>
#end